﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%  if (Request.IsAuthenticated)
    {
%>
<ul>
    <li>Verið þér velkomin
        <%: Html.ActionLink(Page.User.Identity.Name,"Profile", "Home") %></li>
    <li>
        <%: Html.ActionLink("Útskráning", "LogOff", "Account") %></li>
</ul>
<% }
    else
    { %>
<ul>
    <li>
        <%: Html.ActionLink("Innskráning", "LogOn", "Account") %></li>
    <li>
        <%: Html.ActionLink("Nýskráning", "Register", "Account") %></li>
</ul>
<% } %>
